package com.wxxymakers.grademark.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @AUTHOR soft
 * @DATE 2019/1/19 1:36
 * @DESCRIBE
 */
@Configuration
@EnableTransactionManagement
@MapperScan({"com.wxxymakers.grademark.model.mapper"})
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor pageInterceptor() {
        return new PaginationInterceptor();
    }

}
